import 'package:json_annotation/json_annotation.dart';

part 'lose_model.g.dart';

@JsonSerializable()
class LosePageData {
  int? total;
  List<LoseModel>? list;
  LosePageData();

  factory LosePageData.fromJson(Map<String, dynamic> json) =>
      _$LosePageDataFromJson(json);
  Map<String, dynamic> toJson() => _$LosePageDataToJson(this);
}

@JsonSerializable()
class LoseModel {
  String? addr;
  String? desc;
  String? ebike_name;
  String? ebike_image;
  String? battery_no;
  int? ebike_id;
  int? updated_at;
  int? lose_type;
  int? status;
  int? lock_status;
  LoseModel();

  factory LoseModel.fromJson(Map<String, dynamic> json) =>
      _$LoseModelFromJson(json);
  Map<String, dynamic> toJson() => _$LoseModelToJson(this);
}
